package com.doxiaopu.students.product.service;

import com.doxiaopu.students.component.exception.NotMerchantException;
import com.doxiaopu.students.product.entity.Single;
import com.doxiaopu.students.product.vo.AdminSingleParameterVO;
import com.doxiaopu.students.product.vo.SingleVO;
import com.doxiaopu.students.product.vo.StatusVO;

import java.util.List;
import java.util.Map;

public interface ISingleService {
    /**
     * 创建团单
     * @param
     * @return
     */
    void createSinle(SingleVO singleVO,Integer id) throws NotMerchantException, NotMerchantException;

    SingleVO getSingle(String flagid);

    /**
     * 获取团单信息列表
     * @param
     * @return
     */
    Map<String, Object> getSingleList(AdminSingleParameterVO adminSingleParameterVO, Integer id );

    /**
     * 更改团单信息
     * @param singleVO
     */
    void updateSingle(SingleVO singleVO,Integer id);

    /**
     * 编辑商品的销售状态
     * @param statusVO
     * @return
     */
    Integer updateSale(StatusVO statusVO, Integer id);

    /**
     * 更改返利状态、金额
     * @param statusVO
     * @param id
     */
    void updateRebate(StatusVO statusVO, Integer id);

    /**
     * 查询所有返利团单
     * @param
     * @param
     * @return
     */
    Map<String, Object> getAppSingleList();
}
